package com;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

import db.DebugText;
import db.fuxi;


public class Person  extends fuxi {

	
	String name="bob22rrr";


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public static void main(String[]  argc){
		try{
		Person p1 = new Person();
		//p1.save();
		p1.save();
		List<Person> list = new ArrayList<Person>();
		list = fuxi.findAll(Person.class);
		
		for(Person p :  list){
			Logs.i(p.getName());
			
		}
		//p1.createTable();
		
		/* Class c=p1.getClass();
		System.out.println(c.getName());
		Field[] fs = Person.class.getDeclaredFields();
		for(int i=0;i< fs.length; i++){
			
			  Field f = fs[i];
			  f.setAccessible(true);
			  f.set(p1,"22");
			  System.out.println(f.getName()+" value:"+f.get(p1));
			  
		}*/
		
		}catch(Exception e){
			
			e.printStackTrace();
		}
		
	}
		
	
}
